const Koa = require('koa')
const app = new Koa()

// 导入路由模块
const siteRoute = require('./routes/site')
const userRoute = require('./routes/user')

// 挂载路由
app.use(siteRoute.routes()).use(siteRoute.allowedMethods())
app.use(userRoute.routes()).use(userRoute.allowedMethods())

app.listen(8899, () => {
    console.log('listen on 8899');
})